import httpRequest from "../utils/http.jsx";

// 分页查询所有设备
export function useGetAllEquipmentListAPI(current,pageSize){
    return httpRequest({
        url:`/equipment/all`,
        method:'GET',
        params:{
            current,pageSize
        }
    })
}

export function useGetOneEquipmentById(id){
    return httpRequest({
        url:`/equipment/${id}`,
        method:'GET'
    })
}